package com.csx.springcloud.loadbalancer.scl.toSwitch;

import org.springframework.cloud.loadbalancer.core.ReactorServiceInstanceLoadBalancer;
import org.springframework.context.annotation.Bean;

/**
 * 特别注意，该类不应该被 {@link org.springframework.context.annotation.Configuration} 注解标注
 */
public class CsxLoadBalancerConfiguration {

    @Bean
    public ReactorServiceInstanceLoadBalancer dynamicLoadBalancer() {
        return new CsxDynamicLoadBalancer();
    }

    @Bean
    public CsxLoadBalancerFactory csxLoadBalancerFactory() {
        return new CsxLoadBalancerFactory();
    }

}
